package com.yuncheng.spcyApi.constant.common;

/**
 * @author hua
 */
public enum StatDwdEnumConstant {
    TJWD_fsqfl("fsqfl", "申请分类"),
    TJWD_fzcfl("fzcfl", "注册分类"),
    TJWD_fqwfl("fqwfl", "勤务分类"),
    TJKJ_hjs("hjs", "合计数"),
    TJKJ_tgs("tgs", "通过数"),
    TJKJ_btgs("btgs", "不通过数");

    private String index;

    private String name;

    /** 验证值是否存在
     * @return true: 存在
     * */
    public static boolean isExistsIndex(String index){
        for (StatDwdEnumConstant value : StatDwdEnumConstant.values()) {
            if (value.getIndex().equals(index)){
                return true;
            }
        }

        return false;
    }

    StatDwdEnumConstant(String index, String name) {
        this.index = index;
        this.name = name;
    }

    public String getIndex() {
        return index;
    }

    public void setIndex(String index) {
        this.index = index;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
